﻿@model ShiXuLong.Model.Shop
@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>查看详细信息</title>
    <link href="~/lib/layui/css/layui.css" rel="stylesheet" />
    <script src="e:\暂存空间\专业课\我的项目\第三学期\项目\b2c\shixulong.model\scripts\jquery-3.5.1.js"></script>
</head>
<body>

    <form class="layui-form" id="frmCheck">
        <div class="layui-form-item">
            <label class="layui-form-label">商品编号</label>
            <div class="layui-input-inline">
                <input name="Id" hidden type="text" value="@Model.Id" />
                <input type="text" name="ShopId" value="@Model.ShopId" required lay-verify="required" placeholder="请输入标题" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">商品名称</label>
            <div class="layui-input-inline">
                <input type="text" value="@Model.ShopName" name="ShopName" required lay-verify="required" placeholder="请输入标题" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label">文本域</label>
            <div class="layui-input-inline">
                <textarea name="ProductProfile" placeholder="请输入内容" class="layui-textarea">@Model.ProductProfile</textarea>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">商品类别</label>
            <div class="layui-input-inline">
                <select name="ShopTypeId" lay-verify="required">
                    @foreach (var item in ViewBag.ShopType)
                    {
                        <option value="@item.Id">@item.ShopTypeName</option>
                    }
                   
                </select>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">推荐位置</label>
            <div class="layui-input-inline">
                <select name="RecommendId" lay-verify="required">

                    <option value="1">1</option>

                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">Display</label>
            <div class="layui-input-inline">
                <input type="text" value="@Model.Display" name="Display" required lay-verify="required" placeholder="请输入标题" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">商品图片</label>
            <div class="layui-input-inline">
                <input type="text" value="@Model.Shopimage" name="Shopimage" required lay-verify="required" placeholder="请输入标题" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">价格</label>
            <div class="layui-input-inline">
                <input type="text" value="@Model.Price" name="Price" required lay-verify="required" placeholder="请输入标题" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">库存数量</label>
            <div class="layui-input-inline">
                <input type="text" value="@Model.Number" name="Number" required lay-verify="required" placeholder="请输入标题" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">规格</label>
            <div class="layui-input-inline">
                <input type="text" value="@Model.GuideId" name="GuideId" required lay-verify="required" placeholder="请输入标题" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" id="EditSub" lay-filter="formDemo">确定</button>
                @*<button type="reset" class="layui-btn layui-btn-primary">重置</button>*@
            </div>
        </div>
    </form>
    <script src="~/lib/layui/layui.js"></script>
    <script>
        //Demo
        layui.use(['form','layer'], function () {
            var form = layui.form;
            var $ = layui.$;
            var layer = layui.layer;
            //action = ""
            $("#EditSub").click(function() {
                
                setTimeout(function () {
                    var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
                    parent.layer.close(index); //再执行关闭
                }, 500);

                return false;
            });


        });
    </script>

</body>
</html>
